package gov.pbc.nn.kjgl.jfcr.imageRender;

import java.util.Map;

import org.springframework.stereotype.Component;

import com.bstek.ureport.event.impl.CellRender;
import com.bstek.ureport.instance.Cell;
import com.bstek.ureport.instance.Image;

@Component
public class ImageRender implements CellRender {

	public void render(Cell cell, Map<String, Object> arg1) {
		Object path = cell.getValue();
		if (path != null && !(path instanceof Image)) {
			Image img = new Image(path.toString());
			cell.setValue(img);
		}
	}

}